-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix(compat): correct injectors to fix issue with compat API on v19 #3595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Cool. Thanks for this. Unfortunately my compat test app is still broken, so I wasn't able to verify. Was on my list to do before v19 final. |
e7e0866
to
18b61e2
Compare
It looks like this PR inadvertently caused many issues with running the functions of the This PR adds the Here are some of the reported issues:
As a safe practice, I would recommend not using the As a general design recommendation, I don't believe we should ever require the user to run within an injection context. The injector, when needed, should rather be captured by the services that are created by the Angular providers, and then provided internally to the code that needs it. I'll hopefully get a chance to contribute a PR to fix this, but have quite a large migration on my plate at the moment, so I won't get to it now. |
@markwhitfeld we're being bitten by this currently (for RTDB) -- were you able to work around this by passing an injector in somehow? Or it is too black-boxed by Angularfire internals. |
My current solution unfortunately is to downgrade to v18. It is too large of a task to update every usage in our codebase to be wrapped in an injection context at this time. Hopefully I will get to creating a PR to fix this is the AngularFire codebase soon. |
Checklist
yarn install
,yarn test
run successfully? yesDescription
Fix compat api methods to work with the updates from #3586.
Code sample
No change to the API usage.